package com.yeqifu.bus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * InnoDB free: 9216 kB; (`providerid`) REFER `warehouse/bus_provider`(`id`); (`goo
 * </p>
 *
 * 入库实体类
 * @author 艾琦
 * @since 2020-12-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("bus_inport")
@ApiModel(value = "Inport对象", description = "Inport对象")
public class Inport implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 主键，商品入库数据编号
     * */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Integer id;

    /**
     * 支付类型
     * */
    @ApiModelProperty(value = "支付类型")
    private String paytype;

    /**
     * 入库时间
     * */
    @ApiModelProperty(value = "入库时间")
    private Date inporttime;

    /**
     * 处理进货的业务管理员
     * */
    @ApiModelProperty(value = "业务管理员")
    private String operateperson;

    /**
     * 进货数量
     * */
    @ApiModelProperty(value = "进货数量")
    private Integer number;

    /**
     * 进货备注
     * */
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 进货价格
     * */
    @ApiModelProperty(value = "价格")
    private Double inportprice;

    /**
     *  供应商ID
     * */
    @ApiModelProperty(value = "供应商ID")
    private Integer providerid;

    /**
     * 商品ID
     * */
    @ApiModelProperty(value = "商品编号")
    private Integer goodsid;

    /**
     * 订单状态
     * 0：未处理
     * 1：处理中
     * 2：已完成
     * 3：已退回
     * */
    @ApiModelProperty(value = "订单状态")
    private Integer status;

    /**
     * 入库仓库地区ID
     * */
    @ApiModelProperty(value = "仓库地区")
    private Integer wareHousePName;

    /**
     * 入库仓库名称ID
     * */
    @ApiModelProperty(value = "仓库名称")
    private Integer wareHouseName;

    /**
     * 入库仓库地区名称
     * */
    @ApiModelProperty(value = "仓库地区ID")
    @TableField(exist = false)
    private String wareHousePID;

    /**
     * 入库仓库名称名称
     * */
    @ApiModelProperty(value = "仓库名称ID")
    @TableField(exist = false)
    private String wareHouseID;

    /**
    * 货架编号ID
    * */
    @ApiModelProperty(value = "货架ID")
    private Integer shelfId;

    /**
     * 供应商名称
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "供应商名称")
    private String providername;

    /**
     * 商品名称
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "商品名称")
    private String goodsname;

    /**
     * 商品类型
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "商品类型")
    private String type;

    /**
     * 商品规格
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "商品规格")
    private String size;

    /**
     * 生产日期
     */
    @ApiModelProperty(value = "生产日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date prodate;

    /**
     * 保质期
     */
    @ApiModelProperty(value = "保质期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date qualdate;



}
